console.log(localStorage);
//左边大图
const big = document.querySelector('.img-list--big')
let str = ''

for(let k = 0; k < localStorage.length;k++){
  str += `
  <li class="big-item">
  <img src="${localStorage.img}" alt="">
</li>
  `
}
big.innerHTML = str

//左边小图
const small = document.querySelector('.img-list--small')

let str1 =''
for(let k = 0; k < localStorage.length;k++){
  str1 += `
  <li class="small-item">
  <img src="${localStorage.img}" alt="">
</li>
  `
}
small.innerHTML = str1
//右边信息
const primary = document.querySelector('.primary')

let str2 =''

  str2 += `
  <h1 class="name">${localStorage.name}</h1>
  <p class="intro">
    <span class="promotion">
      【①3期免息；②高等级会员赠背包；③加价套餐特惠；(镭雕订单三日后发货)】</span>
     ${localStorage.miaoshu}
  </p>
  <div class="summary">
    <div class="summary_price">
      <div class="common">
        <p class="sale-price">
          <dfn>¥</dfn>
        ${localStorage.price}
        </p>
      </div>
    </div>
    <div class="summary_activity">
      <ul class="list">
        <li class="list_item">
          <span class="label">定制</span>
          <div class="content">免费定制服务</div>
        </li>
        <li class="list_item">
          <span class="label">积分</span>
          <div class="content">购物送积分</div>
        </li>
      </ul>
    </div>
  </div>
  <div class="support">
    <span class="label">商品支持:</span>
    <ul class="support_list">
      <li class="support-item">
        <span class="support_tag">
          <svg class="icon check-circle" aria-hidden="true">
            <use xlink:href="#icon-a-"></use>
          </svg>
          花呗分期
        </span>
        <div class="support_tips"></div>
      </li>

      <li class="support-item">
        <span class="support_tag">
          <svg class="icon check-circle" aria-hidden="true">
            <use xlink:href="#icon-a-"></use>
          </svg>
          以旧换新
        </span>
        <div class="support_tips"></div>
      </li>

      <li class="support-item">
        <span class="support_tag">
          <svg class="icon check-circle" aria-hidden="true">
            <use xlink:href="#icon-a-"></use>
          </svg>
          积分抵现
        </span>
        <div class="support_tips"></div>
      </li>
    </ul>
  </div>
  `

primary.innerHTML = str2